Skip to content

Fixing LitMotion to work with Enter the Play Mode#240

Open
pnarimani wants to merge 3 commits intoannulusgames:mainfrom
pnarimani:main
Open

Fixing LitMotion to work with Enter the Play Mode#240
pnarimani wants to merge 3 commits intoannulusgames:mainfrom
pnarimani:main

Conversation

@pnarimani
Copy link

Fixes #239

When using enter the play mode options, unity doesn't perform a domain reload. Which means the static fields will not be reset automatically.

I added the necessary callbacks to reset all the important static fields to make sure LitMotion works without a domain reload.

vietdungdev pushed a commit to vietdungdev/LitMotion that referenced this pull request Dec 13, 2025
Fixing LitMotion to work with Enter the Play Mode annulusgames#240
vietdungdev added a commit to vietdungdev/LitMotion that referenced this pull request Dec 13, 2025
Fixing LitMotion to work with Enter the Play Mode annulusgames#240
@nuskey8
Copy link
Member

nuskey8 commented Dec 20, 2025

Thank you for the PR. Sorry for the late confirmation.

Since these codes are Editor-only, it seems like you could move them to the Editor file. What do you think?

vietdungdev added a commit to vietdungdev/LitMotion that referenced this pull request Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issues with Enter the Play Mode option in unity

2 participants